﻿using SD.Infrastructure.RepositoryBase;
using SlamDunk.MES.Domain.Entities.DefinitionContext;
using SlamDunk.ValueObjects.Enums;
using System;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IRepositories.Interfaces.DefinitionContext
{
    /// <summary>
    /// 物料清单仓储接口
    /// </summary>
    public interface IBomRepository : IAggRootRepository<Bom>
    {
        #region # 分页获取物料清单列表 —— ICollection<Bom> FindByPage(string keywords...
        /// <summary>
        /// 分页获取物料清单列表
        /// </summary>
        /// <param name="keywords">关键字</param>
        /// <param name="productId">产品Id</param>
        /// <param name="facilityIds">工厂模型Id集</param>
        /// <param name="enabled">是否启用</param>
        /// <param name="checkStatus">审核状态</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="rowCount">总记录数</param>
        /// <param name="pageCount">总页数</param>
        /// <returns>物料清单列表</returns>
        ICollection<Bom> FindByPage(string keywords, Guid? productId, IList<Guid> facilityIds, bool? enabled, CheckStatus? checkStatus, int pageIndex, int pageSize, out int rowCount, out int pageCount);
        #endregion
    }
}
